<div style="width:1000px;margin:10px auto">
    <table cellpadding="0" width="1000">
        <tr>
            <td  class="form_title"><strong><a href="page.html">QUẢN TRỊ PAGES</a></strong></td>
            <td class="form_title_button"><a href="page.html?cmd=delete_all_cache">Xoá cache</a></td>
            <td class="form_title_button"><a href="page.html?cmd=export_xml" target="_blank">Export XML</a></td>
            <td class="form_title_button"><a href="page.html?cmd=import_xml" target="_blank">Import XML</a></td>
            <td class="form_title_button"><a href="page.html?cmd=add">
                <img src="style/images/admin/add_button.gif" style="text-align:center" alt=""/><br />Add</a>
            </td>
            <td class="form_title_button">
                <a href="javascript:void(0);" onclick="if(confirm('Bạn có chắc chắn muốn xóa không?')){literal}{ListPageAdminForm.cmd.value='delete_items';ListPageAdminForm.submit();}else{return false}{/literal}"><img src="style/images/admin/delete_button.gif" alt=""/><br />Delete</a></td>
    	</tr>
    </table>
    
	<table cellspacing="0" width="1000">
        <tr bgcolor="#EFEFEF" valign="top">
            <td width="100%" align="left" style="padding:10px">Tìm trang: <input name="name" type="text" id="name" style="width:200" value="{$name}"> 
                        <input type="submit" value="Tìm kiếm">
                {if $paging}
                  <div class="product-list-paging" align="right">{$paging}</div>
                 {/if}
                 <table width="100%"><tr>
                <td width="100%">
                    CHỌN: 
                    [ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',true,'#FFFFEC','white');">Tất cả</a> ] 
                    [ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',false,'#FFFFEC','white');">Bỏ chọn</a> ] 
                    [ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',-1,'#FFFFEC','white');">Chọn ngược lại</a> ] 
                </td>
                </tr></table>
                <table bgcolor="#EFEFEF" cellspacing="0" width="100%">
                <tr>
                    <td width="100%">
                        
                        <div style="border:2px solid #FFFFFF;">
                        <table width="99%" cellpadding="2" cellspacing="0" border="1" style="border-collapse:collapse" bordercolor="#CCCCCC">
                        <tr valign="middle" bgcolor="#EFEFEF" style="line-height:20px">
                                <th width="24" title="check_all"><input type="checkbox" value="1" id="PageAdmin_all_checkbox" onclick="selectAllCheckbox(this.form, 'PageAdmin',this.checked,'#FFFFEC','white');"></th>
                                <th width="86" align="right" nowrap ><a href="{$href_id}">ID</a> {$img_id}</th>
                                <th width="205" align="left" nowrap >
                                    <a href="{$href_name}">Tên	page</a> {$img_name}							</th>
                                <th width="162" align="left" nowrap="nowrap" > <a href="{$href_title}">Tiêu đề</a> {$img_title} </th>
                          <th width="286">&nbsp;</th>
                          <th width="163" align="left" nowrap>
                                    <a href="{$href_des}">Mô tả</a>	{$img_des}						</th>
                          </tr>
                             {foreach from=$items item=items}
                          <tr bgcolor="{cycle values='#f0f0f0,#ffffff'}" {$hover}>
                                <td><input name="selected_ids[]" type="checkbox" value="{$items.id}" onclick="select_checkbox(this.form,'PageAdmin',this,'#FFFFEC','white');"></td>
                                <td nowrap align="right" style="padding:5px">{$items.id}</td>
                                <td nowrap align="left" style="padding:5px">
                              <a href="{$items.href}" title="Bố cục trang">{$items.name}</a></td>
                            <td align="left" nowrap="nowrap" style="padding:5px"><a href="{$items.href}" title="Bố cục trang">{$items.title}</a></td>
                                <td align="center" nowrap="nowrap" style="padding:5px">[ <a href="page.html?cmd=edit&id={$items.id}">Sửa</a> ] [ <a target="_blank" href="{$items.name}.html">View</a> ] [ <a href="page.html?cmd=copy&id={$items.id}">Copy Page</a> ] [ <a href="page.html?cmd=delete&id={$items.id}" onclick="return confirm('Bạn có chắc chắn muốn xoá không!')"><font color="red">Xoá</font></a> ]</td>
                              <td align="left" style="padding:5px">
                                  {$items.description}							</td>
                          </tr>
                            {/foreach}
                        </table>
                        
                      <input type="hidden" name="cmd" value=""/>
                  </td>
                </tr>
                </table>
                {if $paging}
                  <div class="product-list-paging" align="right">{$paging}</div>
                 {/if}
                <table width="100%"><tr>
                <td width="100%">
                    CHỌN: 
                    [ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',true,'#FFFFEC','white');">Tất cả</a> ] 
                    [ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',false,'#FFFFEC','white');">Bỏ chọn</a> ] 
                    [ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',-1,'#FFFFEC','white');">Chọn ngược lại</a> ] 
                </td>
                </tr></table>
                
            </td>
    </tr>
	</table>
</div>
